<!--<?php
print <<<EOT
-->
<div class="m"></div>
<div class="t">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr class="tr4">
    <td>
<div style="float:right"><input type="button" onClick="window.location='$basename&action=face';return false;" value="管理评论表情" class="btn" /></div>
	查看各{$very[contentName]}模型下评论{$very[contentName]}
<!--
EOT;
foreach($this->moduledb as $key=>$val){
if($key<=0){continue;}
print <<<EOT
-->
<input type="button" onClick="window.location='?adminjob=ext_comment&mid=$key';" value="$val[mname]" class="btn" />
<!--
EOT;
}print <<<EOT
-->
	</td>
  </tr>
</table>
</div>
<!--
EOT;
if($action=='show'){
print <<<EOT
-->
<form action="?adminjob=ext_comment&" method="post" name="FORM">
<div class="t">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr class="head">
    <td colspan="6">评论信息管理</td>
    </tr>
  <tr class="tr2">
    <td>&nbsp;</td>
    <td>原文标题</td>
    <td>评论人</td>
    <td>评论时间</td>
    <td>评论{$very[contentName]}</td>
    <td>操作</td>
  </tr>
<!--
EOT;
foreach($result as $val){
print <<<EOT
-->
  <tr class="tr3">
    <td width="10"><input name="ids[$val[tid]][]" type="checkbox" id="ids[$val[tid]]" value="$val[id]"></td>
    <td><a href="$val[url]" target="_blank">$val[title]</a></td>
    <td>$val[author]&nbsp;($val[fromip])</td>
    <td>$val[postdate]&nbsp;</td>
    <td>$val[message]</td>
    <td><a href="?adminjob=ext_comment&action=delsingle&cid=$val[cid]&tid=$val[tid]&id=$val[id]">删除</a></td>
  </tr>
<!--
EOT;
}print <<<EOT
-->
</table>
</div>
<div class="page">$pages</div>
<div class="sub">
  <input name="action" type="hidden" id="action" value="delall">
  <input name="mid" type="hidden" id="mid" value="$this->mid">
  <input type="button" name="Submit" value="全选" onClick="CheckAll(document.FORM);" class="btn" />
  <input type="submit" name="Submit2" value="删除选中评论" onClick="return confirm('您确定要删除选中的评论？')"class="btn" />
</div>
</form>
<!--
EOT;
}elseif($action=='face'){
print <<<EOT
-->
<form action="$basename" method="post">
<div class="t">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr class="head">
    <td colspan="5">评论表情管理</td>
    </tr>
  <tr class="tr2">
    <td>ID</td>
    <td>表情图片</td>
    <td>说明文字</td>
    <td>排序</td>
    <td>管理操作</td>
  </tr>
<!--
EOT;
foreach($result as $val){
print <<<EOT
-->
  <tr class="tr3">
    <td>$val[id]</td>
    <td><img src="$val[facepath]" /></td>
    <td><input class="input" name="faceintro[$val[id]]" value="$val[faceintro]" /></td>
    <td><input class="input" name="taxis[$val[id]]" value="$val[taxis]" /></td>
    <td>[<a href="$basename&action=delface&id=$val[id]" onClick="if(!confirm('确定删除此表情?')) return false;">删除</a>]</td>
  </tr>
<!--
EOT;
}print <<<EOT
-->
</table>
</div>
<div class="sub">
<input name="action" type="hidden" id="action" value="edit">
<input type="submit" name="Submit4" value="提交修改" class="btn" />
</div>
</form>
<div class="t">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<form action="$basename" method="post">
  <tr class="tr4">
    <td colspan="5">表情图片路径($this->basedir)目录下 
      <input name="facepath" type="text" class="input" id="facepath" /> 
      表情描述
      <input name="faceintro" type="text" class="input" id="faceintro" /> <input name="action" type="hidden" id="action" value="addface">
      <input type="submit" name="Submit3" value="增加新表情" class="btn"></td>
  </tr>
</form>
</table>
</div>
<!--
EOT;
}
?>-->